import myAxios from './Axios.js'
import qs from 'qs'

// api 获取新闻列表数据
export function getNewsList(paramsList) {
  return myAxios({
    url: '/getNewsList',
    method: 'post',
    data: { field: paramsList },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
    transformRequest: [
      (data) => {
        return qs.stringify(data)
      },
    ],
  })
}
